package com.oo.polymorphic_4.task;

import java.util.Scanner;

/**
 * Test--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-10 10:56
 **/
public class Test {

    public static void main(String[] args) {

        TestJob one = new TestJob("测试", "压力测试", 2, 4);

        CodeJob two = new CodeJob("开发", "编码", 2, 4);

        System.out.println("请选择想要的工作：（1.测试，2.开发）");
        Scanner sc = new Scanner(System.in);
        int id = sc.nextInt();
        Job job = null;
        if (id == 1) {
            job = one;
        } else {
            job = two;
        }
        job.intro();
    }
}
